package com.jcfk.eam.domain.excel.mt;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.jcfk.eam.enums.AssetStatus;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 检具清单
 *
 * @author libinghai
 * @email 35738025@gqq.com
 * @date 2024-07-28
 */
@Data
public class MtAssetInfoExcel {

    private static final long serialVersionUID=1L;
            
    /**
     * 检具编号
     */
    @Excel(name = "检具编号",width = 20)
    private String assetCode;
        
    /**
     * 检具名称
     */
    @Excel(name = "检具名称",width = 20)
    private String assetName;

    /**
     * 检具型号
     */
    @Excel(name = "品牌型号",width = 20)
    private String assetModelNo;

    /**
     * 测量范围
     */
    @Excel(name = "测量范围",width = 20)
    private String measuringRange;

    /**
     * 测量精度
     */
    @Excel(name = "精度",width = 20)
    private BigDecimal measuringAccuracy;

    /**
     * 测量分度
     */
    @Excel(name = "分度",width = 20)
    private BigDecimal measuringDivision;

    /**
     * 制造商
     */
    @Excel(name = "制造商",width = 20)
    private String makerName;

    /**
     * 出厂编号
     */
    @Excel(name = "出厂编号",width = 20)
    private String manufactureCode;

    /**
     * 标定周期
     */
    @Excel(name = "标定周期",width = 20)
    private Integer checkPeriod;

    /**
     * 标定到期日
     */
    @Excel(name = "标定到期日",width = 20, format = "yyyy-MM-dd")
    private Date nextCheckDate;

    /**
     * 使用部门
     */
    @Excel(name = "使用部门",width = 20)
    private String usingDepartmentName;

    /**
     * 使用人员
     */
    @Excel(name = "使用人员",width = 20)
    private String usingPersonName;

    /**
     * 位置
     */
    @Excel(name = "量检具位置",width = 20)
    private String locationName;

    /**
     * 检具状态
     */
    @Excel(name = "检具状态",width = 20)
    private int assetStatus;

    /**
     * 标定地点
     */
    @Excel(name = "标定地点",width = 20)
    private String checkPlace;

    /**
     * 标定人
     */
    @Excel(name = "标定人",width = 20)
    private String checkPerson;

    public String getAssetStatus(){
        return AssetStatus.fromString(this.assetStatus).getDesc();
    }
}
